package com.xuecheng.content.convert;

import com.xuecheng.api.content.model.dto.TeachplanMediaDTO;
import com.xuecheng.api.content.model.dto.TeachplanWorkDTO;
import com.xuecheng.api.content.model.vo.BindTeachplanMediaVO;
import com.xuecheng.api.content.model.vo.BindTeachplanWorkVO;
import com.xuecheng.content.entity.TeachplanMedia;
import com.xuecheng.content.entity.TeachplanWork;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * Created on 2021/03/31/17:02 周三
 *
 * @author Lantin
 */
@Mapper
public interface TeachplanWorkConvert {


    TeachplanWorkConvert INSTANCE = Mappers.getMapper(TeachplanWorkConvert.class);

    @Mapping(source = "id", target = "teachplanWorkId")
    TeachplanWorkDTO teachplanWorkToDTO(TeachplanWork teachplanWork);


    TeachplanWorkDTO voToTeachplanWorkDTO(BindTeachplanWorkVO vo);

}
